package com.example.demo.entity;

import java.sql.Timestamp;

public class Order {
    private int id;
    private int memb_id;
    private int book_id;
    private  int book_num;
    private Timestamp order_date;
    private String consignee;
    private String area;
    private String street;
    private String cellphone;
    private String freight_fee;
    private String deliv_mode;
    private String status;

    public Order() {
    }

    public Order(int id, int memb_id, int book_id, int book_num, Timestamp order_date, String consignee, String area, String street, String cellphone, String freight_fee, String deliv_mode, String status) {
        this.id = id;
        this.memb_id = memb_id;
        this.book_id = book_id;
        this.book_num = book_num;
        this.order_date = order_date;
        this.consignee = consignee;
        this.area = area;
        this.street = street;
        this.cellphone = cellphone;
        this.freight_fee = freight_fee;
        this.deliv_mode = deliv_mode;
        this.status = status;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getMemb_id() {
        return memb_id;
    }

    public void setMemb_id(int memb_id) {
        this.memb_id = memb_id;
    }

    public int getBook_id() {
        return book_id;
    }

    public void setBook_id(int book_id) {
        this.book_id = book_id;
    }

    public int getBook_num() {
        return book_num;
    }

    public void setBook_num(int book_num) {
        this.book_num = book_num;
    }

    public Timestamp getOrder_date() {
        return order_date;
    }

    public void setOrder_date(Timestamp order_date) {
        this.order_date = order_date;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public String getCellphone() {
        return cellphone;
    }

    public void setCellphone(String cellphone) {
        this.cellphone = cellphone;
    }

    public String getFreight_fee() {
        return freight_fee;
    }

    public void setFreight_fee(String freight_fee) {
        this.freight_fee = freight_fee;
    }

    public String getDeliv_mode() {
        return deliv_mode;
    }

    public void setDeliv_mode(String deliv_mode) {
        this.deliv_mode = deliv_mode;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", memb_id=" + memb_id +
                ", book_id=" + book_id +
                ", book_num=" + book_num +
                ", order_date=" + order_date +
                ", consignee='" + consignee + '\'' +
                ", area='" + area + '\'' +
                ", street='" + street + '\'' +
                ", cellphone='" + cellphone + '\'' +
                ", freight_fee='" + freight_fee + '\'' +
                ", deliv_mode='" + deliv_mode + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
